#include "myfilesystemmodel.h"

MyFileSystemModel::MyFileSystemModel(QObject *parent)
    : QFileSystemModel{parent}
{}

Qt::ItemFlags MyFileSystemModel::flags(const QModelIndex &index) const
{
    return Qt::ItemIsEditable|Qt::ItemIsSelectable|Qt::ItemIsEnabled;
}


int MyFileSystemModel::columnCount(const QModelIndex &parent) const
{
    //设置列数为1
    return 1;
}

